<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=UTF-8" />
<meta name="layout" content="main" />
</head>
<body>

	<div class="body">
		<h1 style="Font-size:16">Angebot einstellen</h1>
		<g:if test="${flash.message}">
			<div class="message">
				${flash.message}
			</div>
		</g:if>
		<g:hasErrors bean="${AngebotEinstellen}">
			<ul>
				<g:eachError var="err" bean="${AngebotEinstellen}">
					<li>
						${err}
					</li>
				</g:eachError>
			</ul>
		</g:hasErrors>
		<g:form controller="angebot" method="post" enctype="multipart/form-data">
			<div class="dialog">
				<table width="649" border="0">
					<tr>
						<td width="216">Produktname</td>
						<td width="423"><input type="text" name="angebotName" size=59
							style="font-family: Verdana, Geneva, sans-serif; font-size:14" />
					<tr>
						<td valign="top">Beschreibung:</td>
						<td ><textarea style="font-family:Verdana, Geneva, sans-serif; font-size:14" name="beschreibung" class="Bereich" rows="10"
								cols="59"></textarea>
						</td>
					</tr>
					<tr>
						<td>Artikelzustand:</td>
						<td><g:select style="font-family:Verdana, Geneva, sans-serif; font-size:14"  name="artikelzustand"
								from="['neu', 'gebraucht', 'defekt']"
								noSelection="['':'Geben Sie den Artikelzustand an!']" />
						</td>
					</tr>
					<tr>
						<td>Startpreis:</td>
						<td><input type="text" name="startpreis" size="22"
							style="font-family: Verdana, Geneva, sans-serif" /></td>
					</tr>
					<tr>
						<td>Anfangszeit:</td>
						<td><g:select style="font-family:Verdana, Geneva, sans-serif; font-size:14" name="Tag" from="${01..31}" /> <g:select
								name="Monat" from="${01..12}" /> <g:select name="Jahr"
								from="${2011..2013}" />
						</td>
					</tr>
					<tr>
						<td>Enddatum:</td>
						<td><g:select style="font-family:Verdana, Geneva, sans-serif; font-size:14" name="EndTag" from="${01..31}" /> <g:select
								name="EndMonat" from="${01..12}" /> <g:select name="EndJahr"
								from="${2011..2013}" />
						</td>

					</tr>
					<tr>
						<td>Foto hochladen:</td>
						<td><input style="font-family:Verdana, Geneva, sans-serif; font-size:14" id="picture" name="picture" type="file" /></td>
					</tr>
				</table>
				<br> <br>
			</div>
			<div class="buttons">
				<span class="button"> <g:actionSubmit style="font-family:Verdana, Geneva, sans-serif; font-size:14"
						value="Angebot einstellen" action="AngebotEinstellen" /> </span>
			</div>
		</g:form>
	</div>
</body>
</html>